package com.budwk.app.sqfw.vo;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "系统数据字典返回参数vo")
public class SysDictResVo extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1210793382290366000L;

    @ApiModelProperty(description = "ID")
    private String id;

    @ApiModelProperty(description = "父级ID")
    private String parentId;

    @ApiModelProperty(description = "树路径")
    private String path;

    @ApiModelProperty(description = "字典名称")
    private String name;

    @ApiModelProperty(description = "字典编码")
    private String code;

    @ApiModelProperty(description = "启用状态")
    private boolean disabled;

    @ApiModelProperty(description = "排序字段")
    private Integer location;

    @ApiModelProperty(description = "有子节点")
    private boolean hasChildren;

    @ApiModelProperty(description = "单位id")
    private String unitid;

    @ApiModelProperty(description = "是否有数据（用于下载模板使用，有数据不需要模板）")
    private boolean isData;

}
